/*
 * @Author: your name
 * @Date: 2021-07-08 11:47:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \jinfeng_up\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import FilterTrans from './utils/paramsFiler.js'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'multi-items-input'
import 'multi-items-input/dist/multi-items-input.css'
import tinymce from 'tinymce'
import VueTinymce from '@packy-tang/vue-tinymce'
import dayjs from 'dayjs'
import 'default-passive-events'
import VueDirectiveImagePreviewer from 'vue-directive-image-previewer'
import 'vue-directive-image-previewer/dist/assets/style.css'

import 'tinymce/themes/silver/theme'
import 'tinymce/themes/silver'
import 'tinymce/icons/default'
import 'tinymce/plugins/link'
import 'tinymce/plugins/code'
import 'tinymce/plugins/table'
import 'tinymce/plugins/lists'
import 'tinymce/plugins/contextmenu'
import 'tinymce/plugins/wordcount'
import 'tinymce/plugins/colorpicker'
import 'tinymce/plugins/textcolor'
import 'tinymce/plugins/media'
import 'tinymce/plugins/fullscreen'
import 'tinymce/plugins/quickbars'
import 'tinymce/skins/ui/oxide/skin.css'
import 'tinymce/skins/ui/oxide/content.min.css'
import 'tinymce/icons/default/icons.js'
import 'tinymce/plugins/image'

import scroll from 'vue-seamless-scroll'

import hasPermission from './utils/hasPermission'
import { getCurrentModuleListPermission, getCurrentModuleBtnPermission } from './utils/btnPermission' // 按钮权限操作

Vue.use(hasPermission)
Vue.use(VueDirectiveImagePreviewer)

Vue.prototype.dayjs = dayjs
Vue.prototype.$tinymce = tinymce
Vue.use(VueTinymce)
Vue.use(scroll)
Vue.use(Element, {
    size: 'small'
})

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
Vue.use(VueQuillEditor)
Vue.config.productionTip = false
Vue.prototype.$filterTrans = FilterTrans
// main.js

const MENULIST = {
    menulist: [
        {
            id: 'M1101',
            name: '看板',
            path: '/OverView',
            icon: ' ',
            key: false
        },
        {
            id: 'M1102',
            name: '我的待办',
            path: '/myWait',
            icon: ' ',
            key: false
        },
        {
            id: 'M1103',
            name: '反馈总览',
            path: '/feedBack',
            icon: '',
            key: false
        },
        {
            id: 'M1104',
            name: '任务总览',
            path: '/task',
            icon: '',
            key: false
        },

        {
            id: 'M1106',
            name: '系统设置',
            path: '/systemSetting',
            icon: '',
            key: true,
            children: [
                {
                    id: 'M1106',
                    name: '阶段设置',
                    path: '/systemSetting/column',
                    icon: '',
                    children: []
                },
                {
                    id: 'M1106',
                    name: '表单选项设置',
                    path: '/systemSetting/marketingProStatus',
                    icon: '',
                    children: []
                },
                {
                    id: 'M1106',
                    name: '消息设置',
                    path: '/systemSetting/messageSettings',
                    icon: '',
                    children: []
                },
                {
                    id: 'M1106',

                    name: '产品设置',
                    path: '/systemSetting/productSettings',
                    icon: '',
                    children: []
                },
                {
                    id: 'M1106',
                    name: '邮件设置',
                    path: '/systemSetting/emileSettings',
                    icon: '',
                    children: []
                },
                {
                    id: 'M1106',
                    name: '超期设置',
                    path: '/systemSetting/overTineMeeting',
                    icon: '',
                    children: []
                },
                {
                    id: 'M1106',

                    name: '公告设置',
                    path: '/systemSetting/noticeSetting',
                    icon: '',
                    children: []
                }
            ]
        },
        {
            id: 'M1105',
            name: '数据统计',
            path: '/dataStatistics',
            icon: '',
            key: false
        },
        {
            id: 'M1107',
            name: '超期反馈会议',
            path: '/delateMeeting',
            icon: '',
            key: false
        },
        {
            id: 'M1108',
            name: '反馈详情',
            path: '/Details',
            icon: '',
            key: false,
            isShows: false
        },
        {
            id: 'M1109',
            name: '任务详情',
            path: '/taskDetail',
            icon: '',
            key: false,
            isShows: false
        },
        {
            id: 'M1110',
            name: '数据统计详情',
            path: '/dataStaticDetail',
            icon: '',
            key: false,
            isShows: false
        },
        {
            id: 'M1111',
            name: '超期反馈会议详情',
            path: '/mettingDetail',
            icon: '',
            key: false,
            isShows: false
        }
    ]
}
const datalsit = {
    permissonTree: [
        // 反馈总览
        {
            permCode: 'M1103',
            buttonList: [
                // 筛选条件
                {
                    permCode: 'M1103001',
                    permName: '搜索'
                },
                {
                    permCode: 'M1103002',
                    permName: '重置'
                },
                {
                    permCode: 'M1103003',
                    permName: '导出'
                },
                {
                    permCode: 'M1103039',
                    permName: '我的反馈'
                },

                // 表格展现
                {
                    permCode: 'M1103004',
                    permName: '创建反馈'
                },
                {
                    permCode: 'M1103005',
                    permName: '中止'
                },
                {
                    permCode: 'M1103006',
                    permName: '关闭'
                },
                {
                    permCode: 'M1103007',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1103008',
                    permName: '申请上会'
                },
                {
                    permCode: 'M1103009',
                    permName: '转任务'
                },
                {
                    permCode: 'M1103010',
                    permName: '转需求'
                },
                {
                    permCode: 'M1103011',
                    permName: '转BUG'
                },
                {
                    permCode: 'M1103012',
                    permName: '严重超期'
                },
                {
                    permCode: 'M1103013',
                    permName: '绑定反馈'
                },
                {
                    permCode: 'M1103014',
                    permName: '转让'
                },
                {
                    permCode: 'M1103015',
                    permName: '发布'
                },
                {
                    permCode: 'M1103016',
                    permName: '删除'
                },
                {
                    permCode: 'M1103017',
                    permName: '激活'
                },
                {
                    permCode: 'M1103018',
                    permName: '确认'
                },
                {
                    permCode: 'M1103019',
                    permName: '回退'
                },
                {
                    permCode: 'M1103032',
                    permName: '绑定BUG'
                },
                {
                    permCode: 'M1103033',
                    permName: '绑定需求'
                }
            ]
        },
        // 我的待办
        {
            permCode: 'M1102',
            buttonList: [
                // 筛选条件
                {
                    permCode: 'M1102001',
                    permName: '搜索'
                },
                {
                    permCode: 'M1102002',
                    permName: '重置'
                },
                {
                    permCode: 'M1102003',
                    permName: '导出'
                },
                // tab页
                {
                    permCode: 'M1102004',
                    permName: '反馈'
                },
                {
                    permCode: 'M1102005',
                    permName: '任务'
                },
                {
                    permCode: 'M1102006',
                    permName: '超期会议'
                },
                // 反馈按钮
                {
                    permCode: 'M1102007',
                    permName: '中止'
                },
                {
                    permCode: 'M1102008',
                    permName: '关闭'
                },
                {
                    permCode: 'M1102009',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1102010',
                    permName: '申请上会'
                },
                {
                    permCode: 'M1102011',
                    permName: '转任务'
                },
                {
                    permCode: 'M1102012',
                    permName: '转需求'
                },
                {
                    permCode: 'M1102013',
                    permName: '转BUG'
                },
                {
                    permCode: 'M1102014',
                    permName: '严重超期'
                },
                {
                    permCode: 'M1102015',
                    permName: '绑定反馈'
                },
                {
                    permCode: 'M1102016',
                    permName: '转让'
                },
                {
                    permCode: 'M1102017',
                    permName: '发布'
                },
                {
                    permCode: 'M1102018',
                    permName: '删除'
                },
                {
                    permCode: 'M1102019',
                    permName: '激活'
                },
                {
                    permCode: 'M1102020',
                    permName: '确认'
                },
                {
                    permCode: 'M1102021',
                    permName: '回退'
                },
                {
                    permCode: 'M1102067',
                    permName: '绑定需求'
                },
                {
                    permCode: 'M1102068',
                    permName: '绑定BUG'
                },

                // 任务按钮
                {
                    permCode: 'M1102022',
                    permName: '激活'
                },
                {
                    permCode: 'M1102023',
                    permName: '关闭'
                },
                {
                    permCode: 'M1102024',
                    permName: '转让'
                },
                {
                    permCode: 'M1102025',
                    permName: '确认'
                },
                {
                    permCode: 'M1102026',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1102069',
                    permName: '申请上会'
                },

                // 超期反馈按钮
                {
                    permCode: 'M1102027',
                    permName: '中止'
                },
                {
                    permCode: 'M1102028',
                    permName: '关闭'
                },
                {
                    permCode: 'M1102029',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1102030',
                    permName: '申请上会'
                },
                {
                    permCode: 'M1102031',
                    permName: '转任务'
                },
                {
                    permCode: 'M1102032',
                    permName: '转需求'
                },
                {
                    permCode: 'M1102033',
                    permName: '转BUG'
                },
                {
                    permCode: 'M1102034',
                    permName: '严重超期'
                },
                {
                    permCode: 'M1102035',
                    permName: '绑定反馈'
                },
                {
                    permCode: 'M1102036',
                    permName: '转让'
                },
                {
                    permCode: 'M1102037',
                    permName: '发布'
                },
                {
                    permCode: 'M1102038',
                    permName: '删除'
                },
                {
                    permCode: 'M1102039',
                    permName: '激活'
                },
                {
                    permCode: 'M1102040',
                    permName: '确认'
                },
                {
                    permCode: 'M1102041',
                    permName: '回退'
                },
                {
                    permCode: 'M1104099',
                    permName: '绑定BUG'
                }, {
                    permCode: 'M11040100',
                    permName: '绑定需求'
                },
                // 任务按钮
                {
                    permCode: 'M1102042',
                    permName: '激活'
                },
                {
                    permCode: 'M1102043',
                    permName: '关闭'
                },
                {
                    permCode: 'M1102044',
                    permName: '转让'
                },
                {
                    permCode: 'M1102045',
                    permName: '确认'
                },
                {
                    permCode: 'M1102046',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1102070',
                    permName: '回复'
                },
                // 严重超期-超期反馈
                {
                    permCode: 'M1102047',
                    permName: '中止'
                },
                {
                    permCode: 'M1102048',
                    permName: '关闭'
                },
                {
                    permCode: 'M1102049',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1102050',
                    permName: '申请上会'
                },
                {
                    permCode: 'M1102051',
                    permName: '转任务'
                },
                {
                    permCode: 'M1102052',
                    permName: '转需求'
                },
                {
                    permCode: 'M1102053',
                    permName: '转BUG'
                },
                {
                    permCode: 'M1102054',
                    permName: '严重超期'
                },
                {
                    permCode: 'M1102055',
                    permName: '绑定反馈'
                },
                {
                    permCode: 'M1102056',
                    permName: '转让'
                },
                {
                    permCode: 'M1104097',
                    permName: '绑定BUG'
                }, {
                    permCode: 'M1104098',
                    permName: '绑定需求'
                },

                {
                    permCode: 'M1102057',
                    permName: '发布'
                },
                {
                    permCode: 'M1102058',
                    permName: '删除'
                },
                {
                    permCode: 'M1102059',
                    permName: '激活'
                },
                {
                    permCode: 'M1102060',
                    permName: '确认'
                },
                {
                    permCode: 'M1102061',
                    permName: '回退'
                },
                {
                    permCode: 'M1104096',
                    permName: '回复'
                },
                {
                    permCode: 'M1102071',
                    permName: '持续处理'
                },

                // 严重超期-超期任务
                {
                    permCode: 'M1102062',
                    permName: '激活'
                },
                {
                    permCode: 'M1102063',
                    permName: '关闭'
                },
                {
                    permCode: 'M1102064',
                    permName: '转让'
                },
                {
                    permCode: 'M1102065',
                    permName: '确认'
                },
                {
                    permCode: 'M1102066',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1102072',
                    permName: '持续处理'
                }

            ]
        },
        // 主页
        {
            permCode: 'M1101',
            buttonList: [
                {
                    permCode: 'M1101001',
                    permName: '重置'
                },
                {
                    permCode: 'M1101002',
                    permName: '搜索'
                },
                {
                    permCode: 'M1101003',
                    permName: '删除'
                }

            ]
        },

        // 任务总览
        {
            permCode: 'M1104',
            buttonList: [
                // 筛选条件
                {
                    permCode: 'M1104001',
                    permName: '搜索'
                },
                {
                    permCode: 'M1104002',
                    permName: '重置'
                },
                {
                    permCode: 'M1104003',
                    permName: '导出'
                },
                // 表格展现
                {
                    permCode: 'M1104004',
                    permName: '激活'
                },
                {
                    permCode: 'M1104005',
                    permName: '关闭'
                },
                {
                    permCode: 'M1104006',
                    permName: '转让'
                },
                {
                    permCode: 'M1104007',
                    permName: '激活'
                },
                {
                    permCode: 'M1104008',
                    permName: '确认'
                },
                {
                    permCode: 'M1104009',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1104015',
                    permName: '申请上会'
                }

            ]
        },
        // 数据统计
        {
            permCode: 'M1105',
            buttonList: [
                // 反馈关闭率
                {
                    permCode: 'M1105001',
                    permName: '搜索'
                },
                {
                    permCode: 'M1105002',
                    permName: '重置'
                },

                // 已关闭问题统计
                {
                    permCode: 'M1105004',
                    permName: '搜索'
                },
                {
                    permCode: 'M1105005',
                    permName: '重置'
                },

                // 未关闭问题统计
                {
                    permCode: 'M1105007',
                    permName: '搜索'
                },
                {
                    permCode: 'M1105008',
                    permName: '重置'
                },

                // 处理时长
                {
                    permCode: 'M1105010',
                    permName: '搜索'
                },
                {
                    permCode: 'M1105011',
                    permName: '重置'
                },

                // 回退情况统计
                {
                    permCode: 'M1105013',
                    permName: '搜索'
                },
                {
                    permCode: 'M1105014',
                    permName: '重置'
                }

            ]
        },

        // 系统设置
        {
            permCode: 'M1106',
            buttonList: [
                // 阶段设置
                {
                    permCode: 'M110601001',
                    permName: '数据刷新'
                },
                {
                    permCode: 'M110601002',
                    permName: '添加'
                },
                {
                    permCode: 'M110601003',
                    permName: '编辑'
                },
                {
                    permCode: 'M110601004',
                    permName: '保存'
                },
                {
                    permCode: 'M110601005',
                    permName: '取消'
                },
                {
                    permCode: 'M110601006',
                    permName: '删除'
                },
                // 表单选项设置
                {
                    permCode: 'M110602001',
                    permName: '数据刷新'
                },
                {
                    permCode: 'M110602002',
                    permName: '添加'
                },
                {
                    permCode: 'M110602003',
                    permName: '编辑'
                },
                {
                    permCode: 'M110602004',
                    permName: '保存'
                },
                {
                    permCode: 'M110602005',
                    permName: '取消'
                },
                {
                    permCode: 'M110602006',
                    permName: '删除'
                },
                // 消息设置
                {
                    permCode: 'M110603001',
                    permName: '数据刷新'
                },
                {
                    permCode: 'M110603002',
                    permName: '添加'
                },
                {
                    permCode: 'M110603003',
                    permName: '编辑'
                },
                {
                    permCode: 'M110603004',
                    permName: '保存'
                },
                {
                    permCode: 'M110603005',
                    permName: '取消'
                },
                {
                    permCode: 'M110603006',
                    permName: '删除'
                },
                // 产品设置
                {
                    permCode: 'M110604001',
                    permName: '数据刷新'
                },
                {
                    permCode: 'M110604002',
                    permName: '添加'
                },
                {
                    permCode: 'M110604003',
                    permName: '编辑'
                },
                {
                    permCode: 'M110604004',
                    permName: '保存'
                },
                {
                    permCode: 'M110604005',
                    permName: '取消'
                },
                {
                    permCode: 'M110604006',
                    permName: '删除'
                },
                // 邮件设置V1
                {
                    permCode: 'M110605001',
                    permName: '数据刷新'
                },
                {
                    permCode: 'M110605002',
                    permName: '编辑'
                },
                {
                    permCode: 'M110605003',
                    permName: '保存'
                },
                {
                    permCode: 'M110605004',
                    permName: '取消'
                },
                // 邮件设置V2
                {
                    permCode: 'M110605005',
                    permName: '数据刷新'
                },
                {
                    permCode: 'M110605006',
                    permName: '编辑'
                },
                {
                    permCode: 'M110605007',
                    permName: '保存'
                },
                {
                    permCode: 'M110605008',
                    permName: '取消'
                },
                // 超期设置
                {
                    permCode: 'M110606001',
                    permName: '数据刷新'
                },
                {
                    permCode: 'M110606002',
                    permName: '编辑'
                },
                {
                    permCode: 'M110606003',
                    permName: '保存'
                },
                {
                    permCode: 'M110606004',
                    permName: '取消'
                },
                // 公告设置
                {
                    permCode: 'M110607001',
                    permName: '数据刷新'
                },
                {
                    permCode: 'M110607002',
                    permName: '编辑'
                },
                {
                    permCode: 'M110607003',
                    permName: '保存'
                },
                {
                    permCode: 'M110607004',
                    permName: '取消'
                }
            ]
        },
        // 超期反馈会议
        {
            permCode: 'M1107',
            buttonList: [
                {
                    permCode: 'M1107001',
                    permName: '搜索'
                },
                // 表格展现
                {
                    permCode: 'M1107002',
                    permName: '重置'
                },
                {
                    permCode: 'M1107003',
                    permName: '新增'
                },
                {
                    permCode: 'M1107005',
                    permName: '编辑'
                }

            ]
        },
        // 反馈详情
        {
            permCode: 'M1108',
            buttonList: [
                {
                    permCode: 'M1108001',
                    permName: '终止'
                },
                {
                    permCode: 'M1108002',
                    permName: '关闭'
                },
                {
                    permCode: 'M1108003',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1108004',
                    permName: '申请上会'
                },
                {
                    permCode: 'M1108005',
                    permName: '转任务'
                },
                {
                    permCode: 'M1108006',
                    permName: '转需求'
                },
                {
                    permCode: 'M1108007',
                    permName: '转BUG'
                },
                {
                    permCode: 'M1108008',
                    permName: '绑定反馈'
                },
                {
                    permCode: 'M1108009',
                    permName: '转让'
                },
                {
                    permCode: 'M1108010',
                    permName: '激活'
                },
                {
                    permCode: 'M1108011',
                    permName: '确认'
                },
                {
                    permCode: 'M1108012',
                    permName: '回退'
                },
                {
                    permCode: 'M1108013',
                    permName: '相关bug解绑'
                },
                {
                    permCode: 'M1108014',
                    permName: '相关需求解绑'
                },
                {
                    permCode: 'M1108015',
                    permName: '相关反馈解绑'
                },

                {
                    permCode: 'M1108016',
                    permName: '绑定bug'
                },
                {
                    permCode: 'M1108017',
                    permName: '绑定需求'
                },
                {
                    permCode: 'M1108018',
                    permName: '编辑'
                }
            ]
        },
        // 任务详情
        {
            permCode: 'M1109',
            buttonList: [
                // 任务详情
                {
                    permCode: 'M1109001',
                    permName: '关闭'
                },
                {
                    permCode: 'M1109002',
                    permName: '激活'
                },
                {
                    permCode: 'M1109003',
                    permName: '转让'
                },
                {
                    permCode: 'M1109004',
                    permName: '确认'
                },
                {
                    permCode: 'M1109005',
                    permName: '更新进度'
                },
                {
                    permCode: 'M1109006',
                    permName: '申请上会'
                }
            ]
        },
        // 数据统计详情
        {
            permCode: 'M1110',
            buttonList: [
                {
                    permCode: 'M1105012',
                    permName: '导出'
                },
                {
                    permCode: 'M1110001',
                    permName: '导出'
                },
                {
                    permCode: 'M1110002',
                    permName: '导出'
                },
                {
                    permCode: 'M1110003',
                    permName: '导出'
                },
                {
                    permCode: 'M1110004',
                    permName: '导出'
                },
                {
                    permCode: 'M1110005',
                    permName: '导出'
                }
            ]
        },
        // 超期反馈会议详情
        {
            permCode: 'M1111',
            buttonList: [
                // V1
                {
                    permCode: 'M1111001',
                    permName: '返回'
                },
                {
                    permCode: 'M1111002',
                    permName: '导出'
                },
                {
                    permCode: 'M1111003',
                    permName: 'V1邮件'
                },
                {
                    permCode: 'M1111004',
                    permName: '发布'
                },
                // v1超期反馈
                {
                    permCode: 'M1111005',
                    permName: '新增反馈'
                },
                {
                    permCode: 'M1111006',
                    permName: '回复'
                },

                {
                    permCode: 'M1111007',
                    permName: '删除'
                },

                // 反馈任务
                {
                    permCode: 'M1111008',
                    permName: '新增任务'
                },
                {
                    permCode: 'M1111009',
                    permName: '回复'
                },
                {
                    permCode: 'M1111010',
                    permName: '删除'
                },

                // V2
                {
                    permCode: 'M1111012',
                    permName: '返回'
                },
                {
                    permCode: 'M1111013',
                    permName: '导出'
                },
                {
                    permCode: 'M1111014',
                    permName: 'V2邮件'
                },
                // 超期反馈
                {
                    permCode: 'M1111015',
                    permName: '新增反馈'
                },

                {
                    permCode: 'M1111016',
                    permName: '删除'
                },
                {
                    permCode: 'M1111017',
                    permName: '回复'
                },
                // 反馈任务
                {
                    permCode: 'M1111018',
                    permName: '新增任务'
                },

                {
                    permCode: 'M1111019',
                    permName: '删除'
                },
                {
                    permCode: 'M1111020',
                    permName: '回复'
                },
                // 超期记录
                {
                    permCode: 'M1111021',
                    permName: '返回'
                },
                {
                    permCode: 'M1111022',
                    permName: '同步'
                },
                {
                    permCode: 'M1111023',
                    permName: '导出'
                },
                {
                    permCode: 'M1111024',
                    permName: '新增反馈'
                },
                {
                    permCode: 'M1111025',
                    permName: '任务'
                },
                {
                    permCode: 'M1111026',
                    permName: '编辑'
                },
                {
                    permCode: 'M1111027',
                    permName: '删除'
                },
                {
                    permCode: 'M1111028',
                    permName: '新增任务'
                },
                {
                    permCode: 'M1111029',
                    permName: '删除'
                },
                {
                    permCode: 'M1111030',
                    permName: '任务'
                },
                {
                    permCode: 'M1111031',
                    permName: '新增反馈'
                },
                {
                    permCode: 'M1111032',
                    permName: '推送'
                },
                {
                    permCode: 'M1111033',
                    permName: '任务'
                },
                {
                    permCode: 'M1111034',
                    permName: '编辑'
                },
                {
                    permCode: 'M1111035',
                    permName: '删除'
                },
                {
                    permCode: 'M1111036',
                    permName: '新增任务'
                },
                {
                    permCode: 'M1111037',
                    permName: '推送'
                },
                {
                    permCode: 'M1111038',
                    permName: '编辑'
                },
                {
                    permCode: 'M1111039',
                    permName: '删除'
                }
            ]
        }
    ],
    token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ6ZW50YW9Vc2VyQWNjb3VudCI6Imd1amlhbGluIiwidXNlcmlkIjoiRURCQzdDN0VEQzk3NDczOTk1OEZDNkZBOTgwMzY0NTYiLCJpYXQiOjE2MzU5OTE0OTM4MjcsImFjY291bnQiOm51bGwsInVzZXJuYW1lIjoiZ3VqaWFsaW4iLCJyZWFsbmFtZSI6IumhvuWutum6nyIsInplbnRhb1VzZXJJZCI6MTE5OH0.x-2Y-xBxC0v3GvYBVxlDDbhw6G_Gwi3cg-70caYMcG4' // 顾佳林token
    // token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ6ZW50YW9Vc2VyQWNjb3VudCI6Imd1amlhbGluMDAxIiwidXNlcmlkIjoiMUI1RkRDMDI2NDQ4NEREMkJCNDA5QzM3RkY2REE5REMiLCJpYXQiOjE2MzU3NTYwODg1ODksImFjY291bnQiOm51bGwsInVzZXJuYW1lIjoiZ3VqaWFsaW4wMDEiLCJyZWFsbmFtZSI6Imd1amlhbGluMDAxIiwiemVudGFvVXNlcklkIjoxMjAwfQ.VCSBGq8fftXKQruUn3A4p1c7y9h1tuY4oXDYAeCYs2M'
    // token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ6ZW50YW9Vc2VyQWNjb3VudCI6Imd1amlhbGluIiwidXNlcmlkIjoiRURCQzdDN0VEQzk3NDczOTk1OEZDNkZBOTgwMzY0NTYiLCJpYXQiOjE2MzUzODQ1OTI1ODUsImFjY291bnQiOm51bGwsInVzZXJuYW1lIjoiZ3VqaWFsaW4iLCJyZWFsbmFtZSI6IumhvuWutum6nyIsInplbnRhb1VzZXJJZCI6MTE5OH0.h28EEIgI4g5ctqDGzV2WYtUaHkrwOFcJbiPOPYHQnXU'
    // token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ6ZW50YW9Vc2VyQWNjb3VudCI6Imd1amlhbGluMDAyIiwidXNlcmlkIjoiREE2M0QyQTIxMkM4NEM5RTlDNDgwRUVEMjc2NEJEREIiLCJpYXQiOjE2MzQwMjAwNzQyNjksImFjY291bnQiOm51bGwsInVzZXJuYW1lIjoiZ3VqaWFsaW4wMDIiLCJyZWFsbmFtZSI6Imd1amlhbGluMDAyIiwiemVudGFvVXNlcklkIjoxMjAxfQ.WaUFBYARRKFum_1FGvD63dklSaJyjYlsSlpEHXnNGKA' // 顾佳林002 token
    // token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ6ZW50YW9Vc2VyQWNjb3VudCI6Imd1amlhbGluIiwidXNlcmlkIjoiRURCQzdDN0VEQzk3NDczOTk1OEZDNkZBOTgwMzY0NTYiLCJpYXQiOjE2MzQwMTkyODYxMjQsImFjY291bnQiOm51bGwsInVzZXJuYW1lIjoiZ3VqaWFsaW4iLCJyZWFsbmFtZSI6IumhvuWutum6nyIsInplbnRhb1VzZXJJZCI6MTE5OH0.e0JPGW7wxHVO3w4WngAw6sNWTyvEV0oodwxeL7q-sYM'
}
sessionStorage.setItem('USERINFO', JSON.stringify(datalsit))
router.beforeEach((to, from, next) => {
    const permissonTree = JSON.parse(sessionStorage.getItem('USERINFO'))
    if (permissonTree) {
        const res = getCurrentModuleListPermission(MENULIST.menulist, permissonTree.permissonTree)
        sessionStorage.setItem('MENULIST', JSON.stringify(res))
        const btnList = getCurrentModuleBtnPermission(to.path, res)
        sessionStorage.setItem('BUTTONLIST', JSON.stringify(btnList))
    }

    next()
})
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
